import React from "react";
import { ThemeContext } from './theme-context';

export default class ThemedButton extends React.Component {
  render() {
    let props = this.props;
    let theme = this.context;

    console.log(props, theme);
    return (
      <button
        {...props}
        style={{ background: theme.background }}
      ></button>
    )
  }
}

ThemedButton.contextType = ThemeContext;
